package com.example.pt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * 种子做种统计信息
 */
@TableName("torrent_seed_stats")
public class TorrentSeedStats {
    
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    /**
     * 种子哈希值（InfoHash）
     */
    private String infoHash;
    
    /**
     * 做种人数
     */
    private Integer seeders;
    
    /**
     * 完成下载人数
     */
    private Integer completed;
    
    /**
     * 下载中人数（未完成下载）
     */
    private Integer leechers;
    
    /**
     * 最后更新时间
     */
    private Date lastUpdated;

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInfoHash() {
        return infoHash;
    }

    public void setInfoHash(String infoHash) {
        this.infoHash = infoHash;
    }

    public Integer getSeeders() {
        return seeders;
    }

    public void setSeeders(Integer seeders) {
        this.seeders = seeders;
    }

    public Integer getCompleted() {
        return completed;
    }

    public void setCompleted(Integer completed) {
        this.completed = completed;
    }

    public Integer getLeechers() {
        return leechers;
    }

    public void setLeechers(Integer leechers) {
        this.leechers = leechers;
    }

    public Date getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }
} 